<template>
  <div>depart</div>
</template>
<script setup>
import Promise from '../../promise.js'
var p1 = new Promise(res=>{
  console.log(`111`)
  res('ok')
})
var p2 = new Promise(res=>{
  console.log(`222`)
  res('ok2')
})
// Promise.resolve(p);
// p.then(res=>{
//   console.log(222)
// })
// p.then(res=>{
//   console.log(`222`,res)
// })
console.log(`3333`)
// console.log(`result`, )
Promise.all([p1,p2]).then(res=>console.log(res))
// Promise.all([p3,p4]).then(res=>console.log(res))

</script>
<style lang="scss">
</style>